package com.edu.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class FdAppication {

    public static void main(String[] args){

      final ConfigurableApplicationContext applicationContext = SpringApplication.run(FdAppication.class,args);


      //      String[] beanDefinitoonNames = applicationContext.getBeanDefinitionNames();
//
//        for (String beanDefinitoonName : beanDefinitoonNames) {
//            System.out.println("beanDefinitoonName = " + beanDefinitoonName);
//        }


        final  int beanDefinitionCount = applicationContext.getBeanDefinitionCount();
        System.out.println("当前容器bean的数量 veandefinitOncount = " + beanDefinitionCount);

    }




}
